<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html lang="zh-CN"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<meta charset="UTF-8">
	<title>凯盛项目管理系统</title>
	<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
	<script type="text/javascript" src="js/jquery.min.js"></script>
	<script type="text/javascript" src="js/bootstrap.min.js"></script>
</head>
<body class="body">
	<%@ include file="nav.jsp" %>
	<div class="container">
	  <div class="row">
		<div class="span3">
			<div style="padding: 8px 0;" class="well">
				<ul class="nav nav-list">
				  <li class="nav-header">${employeeproject_in_session.project.name }</li>
				  <li class="divider"></li>
				   <li><a href="project.jspx?_m=showProject&projectid=${employeeproject_in_session.projectid }"><i class="icon-white icon-home"></i>最新动态</a></li>

				  <li class="active"><a href="goal.jspx"><i class="icon-flag"></i>目标</a></li>

				  <li><a href="document.jspx"><i class="icon-folder-open"></i>资料库</a></li>

				  <li><a href="folder.jspx"><i class="icon-file"></i>文件共享</a></li>

				  <li><a href="contact.jspx"><i class="icon-user"></i>联系人</a></li>

				  <li><a href="idea.jspx"><i class="icon-fire"></i>想法</a></li>
				  
				  <li><a href="#"><i class="icon-warning-sign"></i>Bug</a></li>
				  
				  <li><a href="#"><i class="icon-cog"></i>项目设置</a></li>
				</ul>
			</div>
		</div>
		<div class="span9">
			
			<ul class="breadcrumb" style="margin-bottom:0px;border-radius: 3px 3px 0 0;margin-top:15px">
				<li class="active">
					<a href="javascript:;"><i class="icon-th"></i>${sessionScope.goal.name }</a>
				</li>
				<li style="float:right">
					<i class="icon-edit"></i><a href="goal.jspx?_m=edit&id=${sessionScope.goal.id }" class="link-black">编辑</a>
				</li>
			</ul>
			<div class="wall">
				<p>${sessionScope.goal.desc }</p>
				<c:choose>
					<c:when test="${sessionScope.goal.rate != 100}">
						<div class="progress progress-danger">
							<div class="bar" style="width: ${sessionScope.goal.rate}%;">
								目标完成${sessionScope.goal.rate }%
							</div>
						</div>
					</c:when>
					<c:when test="${sessionScope.goal.rate == 100}">
						<div class="progress progress-success">
							<div class="bar" style="width: ${sessionScope.goal.rate}%;">
								目标完成${sessionScope.goal.rate }%
							</div>
						</div>
					</c:when>
				</c:choose>

				<div class="page-header">
					<a href="task.jspx?_m=new" class="btn btn-success"><i class="icon-plus icon-white"></i>添加新任务</a>
				</div>
				
				<dl>
					<c:forEach items="${sessionScope.taskItemList }" var="taskItem">
						<dt><i class="icon-bookmark"></i><a href="task.jspx?_m=edit&id=${taskItem.task.id }">${taskItem.task.name }</a>&nbsp;&nbsp;&nbsp;[${taskItem.employee.name }]</dt>
        				<dd>${taskItem.task.desc }</dd>
	        			<c:choose>
        					<c:when test="${taskItem.task.rate != '100'}">
        					<div class="progress">
						  		<div class="bar" style="width:${taskItem.task.rate }%;">已完成${taskItem.task.rate }%</div>
							</div>
        					</c:when>
        					<c:when test="${taskItem.task.rate == '100'}">
        						<div class="progress progress-success">
						  		<div class="bar" style="width:${taskItem.task.rate}%;">已完成${taskItem.task.rate }%</div>
							</div>
        					</c:when>
        				</c:choose>
					</c:forEach>
        			
      			</dl>

			</div>
			
		</div>
	  </div>
	</div>

</body></html>
